﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Хранилище VinidiktovDay5Model" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="CategoryProduct">
          <Key>
            <PropertyRef Name="ID_Category" />
          </Key>
          <Property Name="ID_Category" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="ManufactureProduct">
          <Key>
            <PropertyRef Name="ID_Manufacturer" />
          </Key>
          <Property Name="ID_Manufacturer" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Order">
          <Key>
            <PropertyRef Name="ID_Order" />
          </Key>
          <Property Name="ID_Order" Type="int" Nullable="false" />
          <Property Name="ID_StatusOrder" Type="int" Nullable="false" />
          <Property Name="DateOrder" Type="date" Nullable="false" />
          <Property Name="DateDelivery" Type="date" Nullable="false" />
          <Property Name="ID_CompositionOrder" Type="int" Nullable="false" />
          <Property Name="CountProduct" Type="int" Nullable="false" />
          <Property Name="ID_PickUp" Type="int" Nullable="false" />
          <Property Name="ID_Client" Type="int" />
          <Property Name="CodeReceive" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="OrderProduct">
          <Key>
            <PropertyRef Name="ID_OrderProduct" />
          </Key>
          <Property Name="ID_OrderProduct" Type="int" Nullable="false" />
          <Property Name="ID_Order" Type="int" />
          <Property Name="ID_Product" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="PickUpPoint">
          <Key>
            <PropertyRef Name="ID_PickUp" />
          </Key>
          <Property Name="ID_PickUp" Type="int" Nullable="false" />
          <Property Name="Address" Type="nvarchar" MaxLength="300" />
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="ID_Product" />
          </Key>
          <Property Name="ID_Product" Type="int" Nullable="false" />
          <Property Name="Articul" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="DescriptionProduct" Type="nvarchar" MaxLength="200" Nullable="false" />
          <Property Name="ID_Category" Type="int" Nullable="false" />
          <Property Name="Photo" Type="nvarchar" MaxLength="1000" />
          <Property Name="ID_Manufacture" Type="int" Nullable="false" />
          <Property Name="Cost" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="CurrentDiscount" Type="int" Nullable="false" />
          <Property Name="MaxDiscount" Type="int" Nullable="false" />
          <Property Name="QuantityStock" Type="int" Nullable="false" />
          <Property Name="ID_UnitMeasurement" Type="int" Nullable="false" />
          <Property Name="ID_Supplier" Type="int" Nullable="false" />
        </EntityType>
        <EntityType Name="Role">
          <Key>
            <PropertyRef Name="ID_Role" />
          </Key>
          <Property Name="ID_Role" Type="int" Nullable="false" />
          <Property Name="Role" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="StatusOrder">
          <Key>
            <PropertyRef Name="ID_Status" />
          </Key>
          <Property Name="ID_Status" Type="int" Nullable="false" />
          <Property Name="Status" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Supplier">
          <Key>
            <PropertyRef Name="ID_Supplier" />
          </Key>
          <Property Name="ID_Supplier" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="UnitMeasurement">
          <Key>
            <PropertyRef Name="ID_UnitMeasurement" />
          </Key>
          <Property Name="ID_UnitMeasurement" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Users">
          <Key>
            <PropertyRef Name="ID_User" />
          </Key>
          <Property Name="ID_User" Type="int" Nullable="false" />
          <Property Name="FIO" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="ID_Role" Type="int" Nullable="false" />
        </EntityType>
        <!--Ошибки, обнаруженные при создании:
предупреждение 6002: В таблице или представлении "VinidiktovDay5.dbo.InfoProduct" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
        <EntityType Name="InfoProduct">
          <Key>
            <PropertyRef Name="ID_Product" />
            <PropertyRef Name="Name" />
            <PropertyRef Name="DescriptionProduct" />
            <PropertyRef Name="Manufacture" />
            <PropertyRef Name="Cost" />
            <PropertyRef Name="QuantityStock" />
          </Key>
          <Property Name="ID_Product" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="DescriptionProduct" Type="nvarchar" MaxLength="200" Nullable="false" />
          <Property Name="Manufacture" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="Cost" Type="nvarchar" MaxLength="50" Nullable="false" />
          <Property Name="QuantityStock" Type="int" Nullable="false" />
          <Property Name="Photo" Type="nvarchar" MaxLength="1000" />
        </EntityType>
        <Association Name="FK_Order_PickUpPoint">
          <End Role="PickUpPoint" Type="Self.PickUpPoint" Multiplicity="1" />
          <End Role="Order" Type="Self.Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PickUpPoint">
              <PropertyRef Name="ID_PickUp" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_PickUp" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Order_StatusOrder">
          <End Role="StatusOrder" Type="Self.StatusOrder" Multiplicity="1" />
          <End Role="Order" Type="Self.Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="StatusOrder">
              <PropertyRef Name="ID_Status" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_StatusOrder" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Order_Users">
          <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
          <End Role="Order" Type="Self.Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="ID_User" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_Client" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_OrderProduct_Order">
          <End Role="Order" Type="Self.Order" Multiplicity="0..1" />
          <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Order">
              <PropertyRef Name="ID_Order" />
            </Principal>
            <Dependent Role="OrderProduct">
              <PropertyRef Name="ID_Order" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_OrderProduct_Product">
          <End Role="Product" Type="Self.Product" Multiplicity="1" />
          <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Product">
              <PropertyRef Name="ID_Product" />
            </Principal>
            <Dependent Role="OrderProduct">
              <PropertyRef Name="ID_Product" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_CategoryProduct">
          <End Role="CategoryProduct" Type="Self.CategoryProduct" Multiplicity="1" />
          <End Role="Product" Type="Self.Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CategoryProduct">
              <PropertyRef Name="ID_Category" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_ManufactureProduct">
          <End Role="ManufactureProduct" Type="Self.ManufactureProduct" Multiplicity="1" />
          <End Role="Product" Type="Self.Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ManufactureProduct">
              <PropertyRef Name="ID_Manufacturer" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Manufacture" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_Supplier">
          <End Role="Supplier" Type="Self.Supplier" Multiplicity="1" />
          <End Role="Product" Type="Self.Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Supplier">
              <PropertyRef Name="ID_Supplier" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Supplier" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_UnitMeasurement">
          <End Role="UnitMeasurement" Type="Self.UnitMeasurement" Multiplicity="1" />
          <End Role="Product" Type="Self.Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="UnitMeasurement">
              <PropertyRef Name="ID_UnitMeasurement" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_UnitMeasurement" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Users_Role">
          <End Role="Role" Type="Self.Role" Multiplicity="1" />
          <End Role="Users" Type="Self.Users" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="ID_Role" />
            </Principal>
            <Dependent Role="Users">
              <PropertyRef Name="ID_Role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище VinidiktovDay5ModelContainer">
          <EntitySet Name="CategoryProduct" EntityType="Self.CategoryProduct" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="ManufactureProduct" EntityType="Self.ManufactureProduct" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="PickUpPoint" EntityType="Self.PickUpPoint" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="StatusOrder" EntityType="Self.StatusOrder" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Supplier" EntityType="Self.Supplier" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="UnitMeasurement" EntityType="Self.UnitMeasurement" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="InfoProduct" EntityType="Self.InfoProduct" store:Type="Views" store:Schema="dbo">
            <DefiningQuery>SELECT 
    [InfoProduct].[ID_Product] AS [ID_Product], 
    [InfoProduct].[Name] AS [Name], 
    [InfoProduct].[DescriptionProduct] AS [DescriptionProduct], 
    [InfoProduct].[Manufacture] AS [Manufacture], 
    [InfoProduct].[Cost] AS [Cost], 
    [InfoProduct].[QuantityStock] AS [QuantityStock], 
    [InfoProduct].[Photo] AS [Photo]
    FROM [dbo].[InfoProduct] AS [InfoProduct]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK_Order_PickUpPoint" Association="Self.FK_Order_PickUpPoint">
            <End Role="PickUpPoint" EntitySet="PickUpPoint" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_Order_StatusOrder" Association="Self.FK_Order_StatusOrder">
            <End Role="StatusOrder" EntitySet="StatusOrder" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_Order_Users" Association="Self.FK_Order_Users">
            <End Role="Users" EntitySet="Users" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_OrderProduct_Order" Association="Self.FK_OrderProduct_Order">
            <End Role="Order" EntitySet="Order" />
            <End Role="OrderProduct" EntitySet="OrderProduct" />
          </AssociationSet>
          <AssociationSet Name="FK_OrderProduct_Product" Association="Self.FK_OrderProduct_Product">
            <End Role="Product" EntitySet="Product" />
            <End Role="OrderProduct" EntitySet="OrderProduct" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_CategoryProduct" Association="Self.FK_Product_CategoryProduct">
            <End Role="CategoryProduct" EntitySet="CategoryProduct" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_ManufactureProduct" Association="Self.FK_Product_ManufactureProduct">
            <End Role="ManufactureProduct" EntitySet="ManufactureProduct" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_Supplier" Association="Self.FK_Product_Supplier">
            <End Role="Supplier" EntitySet="Supplier" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_UnitMeasurement" Association="Self.FK_Product_UnitMeasurement">
            <End Role="UnitMeasurement" EntitySet="UnitMeasurement" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Users_Role" Association="Self.FK_Users_Role">
            <End Role="Role" EntitySet="Role" />
            <End Role="Users" EntitySet="Users" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="VinidiktovDay5Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityContainer Name="VinidiktovDay5Entities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="CategoryProduct" EntityType="VinidiktovDay5Model.CategoryProduct" />
          <EntitySet Name="ManufactureProduct" EntityType="VinidiktovDay5Model.ManufactureProduct" />
          <EntitySet Name="Order" EntityType="VinidiktovDay5Model.Order" />
          <EntitySet Name="OrderProduct" EntityType="VinidiktovDay5Model.OrderProduct" />
          <EntitySet Name="PickUpPoint" EntityType="VinidiktovDay5Model.PickUpPoint" />
          <EntitySet Name="Product" EntityType="VinidiktovDay5Model.Product" />
          <EntitySet Name="Role" EntityType="VinidiktovDay5Model.Role" />
          <EntitySet Name="StatusOrder" EntityType="VinidiktovDay5Model.StatusOrder" />
          <EntitySet Name="Supplier" EntityType="VinidiktovDay5Model.Supplier" />
          <EntitySet Name="UnitMeasurement" EntityType="VinidiktovDay5Model.UnitMeasurement" />
          <EntitySet Name="Users" EntityType="VinidiktovDay5Model.Users" />
          <AssociationSet Name="FK_Product_CategoryProduct" Association="VinidiktovDay5Model.FK_Product_CategoryProduct">
            <End Role="CategoryProduct" EntitySet="CategoryProduct" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_ManufactureProduct" Association="VinidiktovDay5Model.FK_Product_ManufactureProduct">
            <End Role="ManufactureProduct" EntitySet="ManufactureProduct" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Order_PickUpPoint" Association="VinidiktovDay5Model.FK_Order_PickUpPoint">
            <End Role="PickUpPoint" EntitySet="PickUpPoint" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_Order_StatusOrder" Association="VinidiktovDay5Model.FK_Order_StatusOrder">
            <End Role="StatusOrder" EntitySet="StatusOrder" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_Order_Users" Association="VinidiktovDay5Model.FK_Order_Users">
            <End Role="Users" EntitySet="Users" />
            <End Role="Order" EntitySet="Order" />
          </AssociationSet>
          <AssociationSet Name="FK_OrderProduct_Order" Association="VinidiktovDay5Model.FK_OrderProduct_Order">
            <End Role="Order" EntitySet="Order" />
            <End Role="OrderProduct" EntitySet="OrderProduct" />
          </AssociationSet>
          <AssociationSet Name="FK_OrderProduct_Product" Association="VinidiktovDay5Model.FK_OrderProduct_Product">
            <End Role="Product" EntitySet="Product" />
            <End Role="OrderProduct" EntitySet="OrderProduct" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_Supplier" Association="VinidiktovDay5Model.FK_Product_Supplier">
            <End Role="Supplier" EntitySet="Supplier" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_UnitMeasurement" Association="VinidiktovDay5Model.FK_Product_UnitMeasurement">
            <End Role="UnitMeasurement" EntitySet="UnitMeasurement" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_Users_Role" Association="VinidiktovDay5Model.FK_Users_Role">
            <End Role="Role" EntitySet="Role" />
            <End Role="Users" EntitySet="Users" />
          </AssociationSet>
          <EntitySet Name="InfoProduct" EntityType="VinidiktovDay5Model.InfoProduct" />
        </EntityContainer>
        <EntityType Name="CategoryProduct">
          <Key>
            <PropertyRef Name="ID_Category" />
          </Key>
          <Property Name="ID_Category" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Product" Relationship="VinidiktovDay5Model.FK_Product_CategoryProduct" FromRole="CategoryProduct" ToRole="Product" />
        </EntityType>
        <EntityType Name="ManufactureProduct">
          <Key>
            <PropertyRef Name="ID_Manufacturer" />
          </Key>
          <Property Name="ID_Manufacturer" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Product" Relationship="VinidiktovDay5Model.FK_Product_ManufactureProduct" FromRole="ManufactureProduct" ToRole="Product" />
        </EntityType>
        <EntityType Name="Order">
          <Key>
            <PropertyRef Name="ID_Order" />
          </Key>
          <Property Name="ID_Order" Type="Int32" Nullable="false" />
          <Property Name="ID_StatusOrder" Type="Int32" Nullable="false" />
          <Property Name="DateOrder" Type="DateTime" Nullable="false" Precision="0" />
          <Property Name="DateDelivery" Type="DateTime" Nullable="false" Precision="0" />
          <Property Name="ID_CompositionOrder" Type="Int32" Nullable="false" />
          <Property Name="CountProduct" Type="Int32" Nullable="false" />
          <Property Name="ID_PickUp" Type="Int32" Nullable="false" />
          <Property Name="ID_Client" Type="Int32" />
          <Property Name="CodeReceive" Type="Int32" Nullable="false" />
          <NavigationProperty Name="PickUpPoint" Relationship="VinidiktovDay5Model.FK_Order_PickUpPoint" FromRole="Order" ToRole="PickUpPoint" />
          <NavigationProperty Name="StatusOrder" Relationship="VinidiktovDay5Model.FK_Order_StatusOrder" FromRole="Order" ToRole="StatusOrder" />
          <NavigationProperty Name="Users" Relationship="VinidiktovDay5Model.FK_Order_Users" FromRole="Order" ToRole="Users" />
          <NavigationProperty Name="OrderProduct" Relationship="VinidiktovDay5Model.FK_OrderProduct_Order" FromRole="Order" ToRole="OrderProduct" />
        </EntityType>
        <EntityType Name="OrderProduct">
          <Key>
            <PropertyRef Name="ID_OrderProduct" />
          </Key>
          <Property Name="ID_OrderProduct" Type="Int32" Nullable="false" />
          <Property Name="ID_Order" Type="Int32" />
          <Property Name="ID_Product" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Order" Relationship="VinidiktovDay5Model.FK_OrderProduct_Order" FromRole="OrderProduct" ToRole="Order" />
          <NavigationProperty Name="Product" Relationship="VinidiktovDay5Model.FK_OrderProduct_Product" FromRole="OrderProduct" ToRole="Product" />
        </EntityType>
        <EntityType Name="PickUpPoint">
          <Key>
            <PropertyRef Name="ID_PickUp" />
          </Key>
          <Property Name="ID_PickUp" Type="Int32" Nullable="false" />
          <Property Name="Address" Type="String" MaxLength="300" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Order" Relationship="VinidiktovDay5Model.FK_Order_PickUpPoint" FromRole="PickUpPoint" ToRole="Order" />
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="ID_Product" />
          </Key>
          <Property Name="ID_Product" Type="Int32" Nullable="false" />
          <Property Name="Articul" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="DescriptionProduct" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="true" />
          <Property Name="ID_Category" Type="Int32" Nullable="false" />
          <Property Name="Photo" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
          <Property Name="ID_Manufacture" Type="Int32" Nullable="false" />
          <Property Name="Cost" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="CurrentDiscount" Type="Int32" Nullable="false" />
          <Property Name="MaxDiscount" Type="Int32" Nullable="false" />
          <Property Name="QuantityStock" Type="Int32" Nullable="false" />
          <Property Name="ID_UnitMeasurement" Type="Int32" Nullable="false" />
          <Property Name="ID_Supplier" Type="Int32" Nullable="false" />
          <NavigationProperty Name="CategoryProduct" Relationship="VinidiktovDay5Model.FK_Product_CategoryProduct" FromRole="Product" ToRole="CategoryProduct" />
          <NavigationProperty Name="ManufactureProduct" Relationship="VinidiktovDay5Model.FK_Product_ManufactureProduct" FromRole="Product" ToRole="ManufactureProduct" />
          <NavigationProperty Name="OrderProduct" Relationship="VinidiktovDay5Model.FK_OrderProduct_Product" FromRole="Product" ToRole="OrderProduct" />
          <NavigationProperty Name="Supplier" Relationship="VinidiktovDay5Model.FK_Product_Supplier" FromRole="Product" ToRole="Supplier" />
          <NavigationProperty Name="UnitMeasurement" Relationship="VinidiktovDay5Model.FK_Product_UnitMeasurement" FromRole="Product" ToRole="UnitMeasurement" />
        </EntityType>
        <EntityType Name="Role">
          <Key>
            <PropertyRef Name="ID_Role" />
          </Key>
          <Property Name="ID_Role" Type="Int32" Nullable="false" />
          <Property Name="Role1" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Users" Relationship="VinidiktovDay5Model.FK_Users_Role" FromRole="Role" ToRole="Users" />
        </EntityType>
        <EntityType Name="StatusOrder">
          <Key>
            <PropertyRef Name="ID_Status" />
          </Key>
          <Property Name="ID_Status" Type="Int32" Nullable="false" />
          <Property Name="Status" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Order" Relationship="VinidiktovDay5Model.FK_Order_StatusOrder" FromRole="StatusOrder" ToRole="Order" />
        </EntityType>
        <EntityType Name="Supplier">
          <Key>
            <PropertyRef Name="ID_Supplier" />
          </Key>
          <Property Name="ID_Supplier" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Product" Relationship="VinidiktovDay5Model.FK_Product_Supplier" FromRole="Supplier" ToRole="Product" />
        </EntityType>
        <EntityType Name="UnitMeasurement">
          <Key>
            <PropertyRef Name="ID_UnitMeasurement" />
          </Key>
          <Property Name="ID_UnitMeasurement" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Product" Relationship="VinidiktovDay5Model.FK_Product_UnitMeasurement" FromRole="UnitMeasurement" ToRole="Product" />
        </EntityType>
        <EntityType Name="Users">
          <Key>
            <PropertyRef Name="ID_User" />
          </Key>
          <Property Name="ID_User" Type="Int32" Nullable="false" />
          <Property Name="FIO" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="ID_Role" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Order" Relationship="VinidiktovDay5Model.FK_Order_Users" FromRole="Users" ToRole="Order" />
          <NavigationProperty Name="Role" Relationship="VinidiktovDay5Model.FK_Users_Role" FromRole="Users" ToRole="Role" />
        </EntityType>
        <Association Name="FK_Product_CategoryProduct">
          <End Type="VinidiktovDay5Model.CategoryProduct" Role="CategoryProduct" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CategoryProduct">
              <PropertyRef Name="ID_Category" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_ManufactureProduct">
          <End Type="VinidiktovDay5Model.ManufactureProduct" Role="ManufactureProduct" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ManufactureProduct">
              <PropertyRef Name="ID_Manufacturer" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Manufacture" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Order_PickUpPoint">
          <End Type="VinidiktovDay5Model.PickUpPoint" Role="PickUpPoint" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Order" Role="Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PickUpPoint">
              <PropertyRef Name="ID_PickUp" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_PickUp" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Order_StatusOrder">
          <End Type="VinidiktovDay5Model.StatusOrder" Role="StatusOrder" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Order" Role="Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="StatusOrder">
              <PropertyRef Name="ID_Status" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_StatusOrder" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Order_Users">
          <End Type="VinidiktovDay5Model.Users" Role="Users" Multiplicity="0..1" />
          <End Type="VinidiktovDay5Model.Order" Role="Order" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="ID_User" />
            </Principal>
            <Dependent Role="Order">
              <PropertyRef Name="ID_Client" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_OrderProduct_Order">
          <End Type="VinidiktovDay5Model.Order" Role="Order" Multiplicity="0..1" />
          <End Type="VinidiktovDay5Model.OrderProduct" Role="OrderProduct" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Order">
              <PropertyRef Name="ID_Order" />
            </Principal>
            <Dependent Role="OrderProduct">
              <PropertyRef Name="ID_Order" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_OrderProduct_Product">
          <End Type="VinidiktovDay5Model.Product" Role="Product" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.OrderProduct" Role="OrderProduct" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Product">
              <PropertyRef Name="ID_Product" />
            </Principal>
            <Dependent Role="OrderProduct">
              <PropertyRef Name="ID_Product" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_Supplier">
          <End Type="VinidiktovDay5Model.Supplier" Role="Supplier" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Supplier">
              <PropertyRef Name="ID_Supplier" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_Supplier" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Product_UnitMeasurement">
          <End Type="VinidiktovDay5Model.UnitMeasurement" Role="UnitMeasurement" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="UnitMeasurement">
              <PropertyRef Name="ID_UnitMeasurement" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="ID_UnitMeasurement" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Users_Role">
          <End Type="VinidiktovDay5Model.Role" Role="Role" Multiplicity="1" />
          <End Type="VinidiktovDay5Model.Users" Role="Users" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="ID_Role" />
            </Principal>
            <Dependent Role="Users">
              <PropertyRef Name="ID_Role" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="InfoProduct">
          <Key>
            <PropertyRef Name="ID_Product" />
            <PropertyRef Name="Name" />
            <PropertyRef Name="DescriptionProduct" />
            <PropertyRef Name="Manufacture" />
            <PropertyRef Name="Cost" />
            <PropertyRef Name="QuantityStock" />
          </Key>
          <Property Name="ID_Product" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="DescriptionProduct" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="true" />
          <Property Name="Manufacture" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="Cost" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="QuantityStock" Type="Int32" Nullable="false" />
          <Property Name="Photo" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
        </EntityType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="Хранилище VinidiktovDay5ModelContainer" CdmEntityContainer="VinidiktovDay5Entities">
          <EntitySetMapping Name="CategoryProduct">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.CategoryProduct">
              <MappingFragment StoreEntitySet="CategoryProduct">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID_Category" ColumnName="ID_Category" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ManufactureProduct">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.ManufactureProduct">
              <MappingFragment StoreEntitySet="ManufactureProduct">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID_Manufacturer" ColumnName="ID_Manufacturer" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Order">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.Order">
              <MappingFragment StoreEntitySet="Order">
                <ScalarProperty Name="CodeReceive" ColumnName="CodeReceive" />
                <ScalarProperty Name="ID_Client" ColumnName="ID_Client" />
                <ScalarProperty Name="ID_PickUp" ColumnName="ID_PickUp" />
                <ScalarProperty Name="CountProduct" ColumnName="CountProduct" />
                <ScalarProperty Name="ID_CompositionOrder" ColumnName="ID_CompositionOrder" />
                <ScalarProperty Name="DateDelivery" ColumnName="DateDelivery" />
                <ScalarProperty Name="DateOrder" ColumnName="DateOrder" />
                <ScalarProperty Name="ID_StatusOrder" ColumnName="ID_StatusOrder" />
                <ScalarProperty Name="ID_Order" ColumnName="ID_Order" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="OrderProduct">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.OrderProduct">
              <MappingFragment StoreEntitySet="OrderProduct">
                <ScalarProperty Name="ID_Product" ColumnName="ID_Product" />
                <ScalarProperty Name="ID_Order" ColumnName="ID_Order" />
                <ScalarProperty Name="ID_OrderProduct" ColumnName="ID_OrderProduct" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="PickUpPoint">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.PickUpPoint">
              <MappingFragment StoreEntitySet="PickUpPoint">
                <ScalarProperty Name="Address" ColumnName="Address" />
                <ScalarProperty Name="ID_PickUp" ColumnName="ID_PickUp" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Product">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.Product">
              <MappingFragment StoreEntitySet="Product">
                <ScalarProperty Name="ID_Supplier" ColumnName="ID_Supplier" />
                <ScalarProperty Name="ID_UnitMeasurement" ColumnName="ID_UnitMeasurement" />
                <ScalarProperty Name="QuantityStock" ColumnName="QuantityStock" />
                <ScalarProperty Name="MaxDiscount" ColumnName="MaxDiscount" />
                <ScalarProperty Name="CurrentDiscount" ColumnName="CurrentDiscount" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="ID_Manufacture" ColumnName="ID_Manufacture" />
                <ScalarProperty Name="Photo" ColumnName="Photo" />
                <ScalarProperty Name="ID_Category" ColumnName="ID_Category" />
                <ScalarProperty Name="DescriptionProduct" ColumnName="DescriptionProduct" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Articul" ColumnName="Articul" />
                <ScalarProperty Name="ID_Product" ColumnName="ID_Product" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Role">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.Role">
              <MappingFragment StoreEntitySet="Role">
                <ScalarProperty Name="Role1" ColumnName="Role" />
                <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="StatusOrder">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.StatusOrder">
              <MappingFragment StoreEntitySet="StatusOrder">
                <ScalarProperty Name="Status" ColumnName="Status" />
                <ScalarProperty Name="ID_Status" ColumnName="ID_Status" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Supplier">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.Supplier">
              <MappingFragment StoreEntitySet="Supplier">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID_Supplier" ColumnName="ID_Supplier" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="UnitMeasurement">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.UnitMeasurement">
              <MappingFragment StoreEntitySet="UnitMeasurement">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID_UnitMeasurement" ColumnName="ID_UnitMeasurement" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Users">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.Users">
              <MappingFragment StoreEntitySet="Users">
                <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Login" ColumnName="Login" />
                <ScalarProperty Name="FIO" ColumnName="FIO" />
                <ScalarProperty Name="ID_User" ColumnName="ID_User" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="InfoProduct">
            <EntityTypeMapping TypeName="VinidiktovDay5Model.InfoProduct">
              <MappingFragment StoreEntitySet="InfoProduct">
                <ScalarProperty Name="Photo" ColumnName="Photo" />
                <ScalarProperty Name="QuantityStock" ColumnName="QuantityStock" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="Manufacture" ColumnName="Manufacture" />
                <ScalarProperty Name="DescriptionProduct" ColumnName="DescriptionProduct" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID_Product" ColumnName="ID_Product" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="false" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
        <DesignerProperty Name="UseLegacyProvider" Value="false" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>